import request from '../utils/request'
import { ADMIN_API_BASE_URL } from '../config'

export const getBannerListApi = () => request.get(`${ADMIN_API_BASE_URL}/banner/list`)
export const postBannerItemFlagApi = (params) => request.post(`${ADMIN_API_BASE_URL}/banner/updateFlag`, params)
export const deleteBannerItemApi = (params) => request.get(`${ADMIN_API_BASE_URL}/banner/delete`, { params })
export const postAddBannerItemApi = (params) => request.post(`${ADMIN_API_BASE_URL}/banner/add`, params)
